package com.example.techstudy.controller;

import com.example.techstudy.service.ThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ls
 * @date: 2022/3/23
 * @description:
 */
@RestController
@RequestMapping("/")
public class ThreadController {

    @Autowired
    private ThreadService threadService;

    @GetMapping("/thread-test")
    public void doThreadTest(){
        threadService.wrapThread();
    }
}
